class AboutView extends zysx.BaseView{

    private btn_back:eui.Image

	private btn_sure:eui.Image;

    public constructor() {
		super();
		this.skinName = "AboutSkin";
	}
	public initComponent(): void {
		super.initComponent();
	}

	public initListener(): void {
		super.initListener();
		
		this.addEvent(this.btn_back, egret.TouchEvent.TOUCH_TAP, this.openView, this);
		this.addEvent(this.btn_sure, egret.TouchEvent.TOUCH_TAP, this.openView, this);	
		
	}
    private openView(evt: egret.TouchEvent): void {
		let viewName: string = "";
		let layType: number = LayerType.UI;
		let data = null;
		switch (evt.currentTarget) {
			case this.btn_back:
				viewName = ViewConst.INDEXVIEW;
				data = 1;
				break;
			case this.btn_sure:
				viewName = ViewConst.PLAYVIEW;
				data = 1;
				break;
		}
		if (viewName) {
			zysx.LayerMgr.ins.openView(viewName, data, layType);
		}
	}

	
	public onOpen(data?): void {
		super.onOpen(data);
	
	}
}
window["AboutView"] = AboutView;